package com.example.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.pojo.Notification;
import com.example.pojo.NotificationReadStatus;
import com.example.pojo.dto.NotificationDTO;

import java.util.List;

public interface NotificationDao {
    List<Notification> notificationList();
    String addOrUpdateNotification(Notification notification);
    // 分页查询
    IPage<Notification> getNotificationInfoPage(int currentPage, int limit);
    IPage<Notification> getNotificationByTitleInfoPage(int currentPage, int limit, String title);
    String addNotificationForAllParents(Notification notification);
    List<NotificationDTO> getNotificationByUserId(Long userId);
    String isReadNotification(NotificationReadStatus notificationReadStatus);
    List<NotificationDTO> getNotificationByUserIdAndType(Long userId, Integer notificationType);
    List<NotificationDTO> getMyNotification(Long userId);
    List<NotificationDTO> getNotReadNotificationByUserIdAndType(Long userId, Integer notificationType);
}
